﻿namespace ServerSide.utils
{
    public class GenerateTime
    {
        /// <summary>
        /// 生成当前时间，格式：2024-02-07 10:35:52
        /// </summary>
        /// <returns></returns>
        public static String GetCurrentTime()
        {
            DateTime currentTime = DateTime.Now;
            return currentTime.ToString("yyyy-MM-dd HH:mm:ss");
        }
    }
}
